/*轮播图部分*/
$(function(){
	var len = $("#nav_list1").find("li").length;
	var index=0;
	var timer;
	show();
	
	function show(){
		if(index < 0){
			index = len - 1;
		}else if(index > len-1){
			index = 0;
		}
		$("#nav_list1").find("li").eq(index).animate({opacity:1}).siblings().animate({opacity:0});
		$("#nav_list2").find("li").eq(index).addClass("active").siblings().removeClass();	
	}
	
	 function carousel(){
        index++;
        show();
    }

	 $("#nav").on("mouseenter",function(){
		clearInterval(timer);
	}).on("mouseleave",function(){
		timer = setInterval(carousel,2000)
	}).trigger("mouseleave");
	
	$("#nav_list2").on("mouseover","li",function(){
		index = $(this).index();
		show();
	})
	
	/*-------------------------本周主题的特效-----------------------------------*/

	$(".active_s").find("img").mouseover(function(){
		$(this).stop().animate({
			"width":288,
			"height":267,
			"opacity":1
		},1000)
	}).mouseout(function(){
		$(this).stop().animate({
			"width":310,
			"height":280,
			"opacity":0.8
		},1000)
	})
	
	$(".active_ss").find("img").mouseover(function(){
		$(this).stop().animate({
			"width":290,
			"height":550,
			"opacity":1
		},1000)
	}).mouseout(function(){
		$(this).stop().animate({
			"width":309,
			"height":560,
			"opacity":0.8
		},1000)
	})
	
	$(".active_sss").find("img").mouseover(function(){
		$(this).stop().animate({
			"width":590,
			"height":270,
			"opacity":1
		},1000)
	}).mouseout(function(){
		$(this).stop().animate({
			"width":609,
			"height":280,
			"opacity":0.8
		},1000)
	})
	
	/*-------------------热门品牌----------------*/
$("#hot_shop ul li").hover(function(){
	var $span = $(this).find("span");
	$span.stop().animate({
		height:117,
		opacity:0.9
	},100)
},function(){
	var $span = $(this).find("span");
	$span.stop().animate({
		height:0,
		
	},10)
})


/*---------------下面友情链接---------------------*/
$("#title").find("ul").animate({
	width:1
},8000)










/*------------------结束标签---------------------*/
})